package org.example;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;

public class CommissionsTest5 {
    Commissions com=new Commissions();
    /*
    第一个条件测试
     */
    @Test
    public void test1() {
        float except=(float) -1;
        float actual=com.commission(-1,-1,-1);
        assertEquals(except,actual);
    }
    @Test
    public void test2() {
        float except=(float) -1;
        float actual=com.commission(-1,-1,1);
        assertEquals(except,actual);
    }
    @Test
    public void test3() {
        float except=(float) -1;
        float actual=com.commission(-1,1,-1);
        assertEquals(except,actual);
    }
    @Test
    public void test4() {
        float except=(float) -1;
        float actual=com.commission(-1,1,1);
        assertEquals(except,actual);
    }
    @Test
    public void test5() {
        float except=(float) -1;
        float actual=com.commission(1,-1,-1);
        assertEquals(except,actual);
    }
    @Test
    public void test6() {
        float except=(float) -1;
        float actual=com.commission(1,-1,1);
        assertEquals(except,actual);
    }
    @Test
    public void test7() {
        float except=(float) -1;
        float actual=com.commission(1,1,-1);
        assertEquals(except,actual);
    }
    @Test
    public void test8() {
        float except=(float) 9.8;
        float actual=com.commission(1,1,1);
        assertEquals(except,actual);
    }
    /*
    第二个条件测试
     */
    @Test
    public void test9() {
        float except=(float) 49;
        float actual=com.commission(5,5,5);
        assertEquals(except,actual);
    }
    @Test
    public void test10() {
        float except=(float) 197.5;
        float actual=com.commission(20,1,5);
        assertEquals(except,actual);
    }
    /*
    第三个条件测试
     */
    @Test
    public void test11() {
        float except=(float) 197.5;
        float actual=com.commission(20,1,5);
        assertEquals(except,actual);
    }
    @Test
    public void test12() {
        float except=(float) 696;
        float actual=com.commission(50,10,10);
        assertEquals(except,actual);
    }
}